package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import org.dormnet.dao.bean.Dormnewscomment;

public class DormnewscommentMapping implements BeanMapping {
	public Object mapping(ResultSet resultSet) throws SQLException {
		Dormnewscomment dormnewscomment = new Dormnewscomment();
		dormnewscomment.setContent(resultSet.getString("content"));
		dormnewscomment.setDnid(resultSet.getInt("dnid"));
		dormnewscomment.setIsdeleted(resultSet.getInt("isdeleted"));
		dormnewscomment.setPctime(resultSet.getDate("pctime"));
		dormnewscomment.setCommentor(resultSet.getInt("commentor"));
		return dormnewscomment;
	}

}
